package com.nuoniu.sibanyun.service.erp.barcode.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.nuoniu.sibanyun.entity.erp.barcode.ErpBarcodePrintSource;
import com.nuoniu.sibanyun.mapper.erp.barcode.ErpBarcodePrintSourceMapper;
import com.nuoniu.sibanyun.service.erp.barcode.IErpBarcodePrintSourceService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 条码管理-条码打印-原数据 服务实现类
 * </p>
 *
 * @author 白强
 * @since 2021-11-10
 */
@Service
public class ErpBarcodePrintSourceServiceImpl extends ServiceImpl<ErpBarcodePrintSourceMapper, ErpBarcodePrintSource> implements IErpBarcodePrintSourceService {

    @Override
    public List<ErpBarcodePrintSource> listByPrintId(Long printId) {
        QueryWrapper<ErpBarcodePrintSource> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("barcode_print_id",printId);
        List<ErpBarcodePrintSource> printSources = list(queryWrapper);
        return printSources;
    }
}
